package com.kb.domain.gc;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kb.domain.BaseDO;
import lombok.*;

/**
 * @author 国创工软
 */


@TableName("category_aggregation_field")
@KeySequence("category_aggregation_field_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class CategoryAggregationFieldDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 一级分类id
     */
    private Long firstCategoryId;


    /**
     * 二级分类id
     */
    private Long secondCategoryId;

    /**
     * 三级分类id
     */
    private Long thirdCategoryId;

    /**
     * 字段名称
     */
    private String aggregationFieldName;

    /**
     * 聚合类型 1：默认，2：分类聚合
     */
    private Integer aggregationType;
    // 租户id
    private Integer tenantId = 1;
}
